/*
* created by Administrator on 2018/12/12
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const Koa =require('koa');
const koaBody=require('koa-body');
const router =require('./router');
const session =require('./session');
const _static =require('./staticServer');
const cors =require('./cors');
const gizp =require('./gzip');
const interceptor = require('./interceptor');
const connect = require('./database');

const app =new Koa();
cors(app);
session(app);
_static(app);
app.use(koaBody());
router(app);
connect(app);
